Repository navigation
Every ask to CoderHelm is seen and answered - #960
Conversation
Every way a person addresses CoderHelm counts: @CoderHelm in any case, @CoderHelm[bot], the app's slug, the link GitHub's editor makes of a pasted mention, and a Markdown link to the organization or the app. A link alone or inside a sentence is a reference, not a command. An accepted command gets an eyes reaction from the gateway before its work is queued, and the review that answers it swaps it for a rocket. A refused command gets one short reply saying why. A re-review ask that comes while an identical review of the commit is running is answered by that review's verdict: two quick asks make one review, never zero. An edit that makes a comment a command runs it under its own job key, and a person whose login contains the name is no longer taken for the app. Incident case xl_every_ask_seen_and_answered.
Another open pull request took xl.
Superseded by CoderHelm's latest review
Superseded by CoderHelm's latest review
Asking means they want a real second look, so a person's re-review ask runs a fresh model review even when nothing on the commit changed. Automatic triggers keep the standing verdict with no model work. Two asks still collapse into one fresh review.
Superseded by CoderHelm's latest review
|
💚 Post-merge health check passed: the deploy of
|
| // A command from someone who may not ask is told why, once; other | ||
| // conversation on CoderHelm's PR is left alone. | ||
| if ask.is_some() { | ||
| refuse_comment( |
There was a problem hiding this comment.
🛑 Blocking (correctness): Near-identical helpers added together (scope)
services/gateway/src/routes/github_webhook.rs adds refuse_comment next to see_comment, added in the same change. Keep one helper with the shared logic (a parameter for what differs) and call it from both places. If the ticket truly needs it, say why on a line Wider than the ticket: services/gateway/src/routes/github_webhook.rs: <why>.
| //! no command. And an accepted command showed nothing in the conversation | ||
| //! until its answer posted: a re-review that waited behind another review | ||
| //! of the same commit, or ran long, looked exactly like one that was lost. | ||
| //! A command refused for its author's standing, or because the reviewer is |
There was a problem hiding this comment.
🛑 Blocking (correctness): Near-identical helpers added together (scope)
services/worker/src/passes/incidents/xm_every_ask_seen_and_answered.rs adds reviewer next to webhook, added in the same change. Keep one helper with the shared logic (a parameter for what differs) and call it from both places. If the ticket truly needs it, say why on a line Wider than the ticket: services/worker/src/passes/incidents/xm_every_ask_seen_and_answered.rs: <why>.
Summary
A person's request to CoderHelm is never lost, and it is always visibly acknowledged.
@coderhelm,@CoderHelm,@coderhelm[bot], the app's slug, the link GitHub's editor makes when a rendered mention is pasted (https://github.com/CoderHelm re-review), and a Markdown link to the organization or the app. Case and surrounding punctuation don't matter. A link on its own, or inside a sentence, is a reference and not a command. Neither an email address nor a repository link addresses CoderHelm.Changes
common::address(new): the one parser for every comment surface, moved out of the gateway. It recognizes every address form, keeps@-mentions valid anywhere outside quotes and code, and accepts a link only when it opens a line and words follow it. It also holdsask_added_by_editandask_keyfor edits.common::review_ack(new): the ask record, the 👀 and 🚀 reaction steps behind a smallReactionstrait, the rule for which waiting asks a stored review answers, the collapse check, and the refusal lines with their once-per-comment key.common::claim::claimed_at: when a live claim was taken.ReviewMessage.ack: the comment that asked, carried to the job.github_webhook:send_review_jobreacts and records the ask before it queues the job.handle_issue_commentandhandle_review_commentattach the ask, reply once to a refused command, and key edits separately.is_coderhelm_user.store_review_recordsettles the asks it answers.run_onceends an ask that the running review already answered.review_policy::claim_still_running), not only when the commit was never reviewed.review_pr::run_onceno longer answers a person's ask from the standing verdict;review_policy::{answers_from_standing, standing_answer}are removed, and their tests now assert a fresh review.GitHubClient::remove_reactionand aReactionsimpl were added.xm_every_ask_seen_and_answeredand its page.Verification
cargo fmt --all --check, andrustfmt --checkon the incident cases.cargo clippy -p common -p worker -p gateway --all-targets -- -D warningscargo test -p common -p worker -p gatewaybrand_spelling.pyanddomain_examples.py